package jobascjp;

public class Hexy {
    public static void main(String[] args) {
        Integer i = 42;
        // Expression ? true : false;
        String s = (i < 40) ? "life": (i > 50) ? "universe" : "everything";
        System.out.println(s);
        
        /*
         * What is the result?
         * 
         * null
         * life
         * universe
         * everything // korrekt
         * Compilation fails.
         * An exception is thrown at runtime.
         *
         */
    }
}
